// app.js
import user_const from '@/constant/user/user'
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    const userLoginResult=wx.getStorageSync(user_const.USER_LOGIN_RESULT)
    if(!userLoginResult){
        wx.redirectTo({
          url: '/pages/login/login',
        })
    }
  },
  globalData: {
    userInfo: null
  }
})
